In [6]:
# value별로 값을 다르게 주고싶어서 진행

hash_tags = ['코딩','개발자','빅데이터','머신러닝','딥러닝','coding','developer','bigdata','machinelearning','deeplearning']
most_like_tags = ['코딩','개발자','빅데이터']

In [5]:
for hash_tag in hash_tags:
    if any(e in hash_tag for e in most_like_tags):
        count_number = 100
    else:
        count_number = 20

any(iterable)

  • Return True if bool(x) is True for any x in the iterable.